import {MockMethod} from 'vite-plugin-mock'
import {baseApi} from "../config";

export default [
    {
        url: `${baseApi}/system/user/add`,
        params: {
            "userId": 0,
            "deptId": 100,
            "userName": "cqyhm",
            "nickName": "样",
            "password": "123456",
            "mobile": "13896018745",
            "email": "32033658@qq.com",
            "sex": "1",
            "status": 1,
            "remark": "",
            "postIds": [
                2
            ],
            "roleIds": [
                1
            ],
            "isAdmin": 1
        },
        method: 'POST',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": null
            }
        }
    },
    {
        url: `${baseApi}/system/user/delete`,
        params: {"ids": [8]},
        method: 'delete',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": null
            }
        }
    },
    {
        url: `${baseApi}/system/user/getEdit`,
        params: {id: 1},
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "user": {
                        "id": 1,
                        "userName": "admin",
                        "mobile": "13578342363",
                        "userNickname": "超级管理员",
                        "birthday": 0,
                        "userPassword": "",
                        "userSalt": "",
                        "userStatus": 1,
                        "userEmail": "yxh669@qq.com",
                        "sex": 1,
                        "avatar": "https://yxh-1301841944.cos.ap-chongqing.myqcloud.com/gfast/2021-07-19/ccwpeuqz1i2s769hua.jpeg",
                        "deptId": 101,
                        "remark": "",
                        "isAdmin": 1,
                        "address": "asdasfdsaf大发放打发士大夫发按时",
                        "describe": "描述信息",
                        "lastLoginIp": "::1",
                        "lastLoginTime": "2022-10-26 03:01:52",
                        "createdAt": "2021-06-22 17:58:00",
                        "updatedAt": "2024-08-29 09:45:21",
                        "deletedAt": null
                    },
                    "checkedRoleIds": null,
                    "checkedPosts": [
                        2,
                        3
                    ]
                }
            }
        }
    },
    {
        url: `${baseApi}/system/user/edit`,
        params: {
            "userId": 1,
            "deptId": 101,
            "userName": "admin",
            "nickName": "超级管理员",
            "password": "-",
            "mobile": "13578342363",
            "email": "yxh669@qq.com",
            "sex": "1",
            "status": 1,
            "remark": "",
            "postIds": [
                2,
                3
            ],
            "roleIds": [],
            "isAdmin": 1
        },
        method: 'put',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": null
            }
        }
    },
    {
        url: `${baseApi}/system/user/list`,
        //params:{pageNum:1,pageSize:10,deptId:0,mobile:'',status:'',keyWords:''},
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "userList": [
                        {
                            "id": 1,
                            "userName": "admin",
                            "mobile": "13578342363",
                            "userNickname": "超级管理员",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "yxh669@qq.com",
                            "sex": 1,
                            "avatar": "https://yxh-1301841944.cos.ap-chongqing.myqcloud.com/gfast/2021-07-19/ccwpeuqz1i2s769hua.jpeg",
                            "deptId": 101,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "asdasfdsaf大发放打发士大夫发按时",
                            "describe": "描述信息",
                            "lastLoginIp": "::1",
                            "lastLoginTime": "2022-10-26 03:01:52",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2024-08-29 09:45:21",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 101,
                                "pid": 100,
                                "ancestors": "0,100",
                                "deptName": "深圳总公司",
                                "orderNum": 1,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:55",
                                "updatedAt": "2024-08-28 22:25:55",
                                "deletedAt": null
                            },
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 2,
                            "userName": "yixiaohu",
                            "mobile": "13699885599",
                            "userNickname": "奈斯",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "yxh@qq.com",
                            "sex": 1,
                            "avatar": "upload_file/2022-11-04/co3e5ljknns8jhlp8s.jpg",
                            "deptId": 102,
                            "remark": "备注",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "::1",
                            "lastLoginTime": "2022-11-04 09:54:56",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-11-04 17:54:56",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 102,
                                "pid": 100,
                                "ancestors": "0,100",
                                "deptName": "长沙分公司",
                                "orderNum": 2,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:55",
                                "updatedAt": "2024-08-28 22:25:55",
                                "deletedAt": null
                            },
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 3,
                            "userName": "zs",
                            "mobile": "16399669855",
                            "userNickname": "张三",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "zs@qq.com",
                            "sex": 0,
                            "avatar": "https://yxh-1301841944.cos.ap-chongqing.myqcloud.com/gfast/2021-08-02/cd8nif79egjg9kbkgk.jpeg",
                            "deptId": 101,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "::1",
                            "lastLoginTime": "2022-04-28 10:01:47",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-04-28 10:01:47",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 101,
                                "pid": 100,
                                "ancestors": "0,100",
                                "deptName": "深圳总公司",
                                "orderNum": 1,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:55",
                                "updatedAt": "2024-08-28 22:25:55",
                                "deletedAt": null
                            },
                            "roleInfo": [
                                {
                                    "roleId": 1,
                                    "name": "超级管理员"
                                },
                                {
                                    "roleId": 2,
                                    "name": "普通管理员"
                                }
                            ],
                            "post": null
                        },
                        {
                            "id": 4,
                            "userName": "qlgl",
                            "mobile": "13758596696",
                            "userNickname": "测试c",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "qlgl@qq.com",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 102,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "127.0.0.1",
                            "lastLoginTime": null,
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-11-03 15:44:20",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 102,
                                "pid": 100,
                                "ancestors": "0,100",
                                "deptName": "长沙分公司",
                                "orderNum": 2,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:55",
                                "updatedAt": "2024-08-28 22:25:55",
                                "deletedAt": null
                            },
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 5,
                            "userName": "test",
                            "mobile": "13845696696",
                            "userNickname": "测试2",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "123@qq.com",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 101,
                            "remark": "",
                            "isAdmin": 0,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "::1",
                            "lastLoginTime": "2022-03-30 10:50:39",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-11-03 15:44:10",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 101,
                                "pid": 100,
                                "ancestors": "0,100",
                                "deptName": "深圳总公司",
                                "orderNum": 1,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:55",
                                "updatedAt": "2024-08-28 22:25:55",
                                "deletedAt": null
                            },
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 6,
                            "userName": "18999998889",
                            "mobile": "13755866654",
                            "userNickname": "刘大大",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "1223@qq.com",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 103,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "[::1]",
                            "lastLoginTime": "2022-02-25 14:29:22",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-11-03 17:05:07",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 103,
                                "pid": 101,
                                "ancestors": "0,100,101",
                                "deptName": "研发部门",
                                "orderNum": 1,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:56",
                                "updatedAt": "2024-08-28 22:25:56",
                                "deletedAt": null
                            },
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 7,
                            "userName": "zmm",
                            "mobile": "13788566696",
                            "userNickname": "张明明",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "11123@qq.com",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 104,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "127.0.0.1",
                            "lastLoginTime": null,
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-04-12 17:55:42",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 104,
                                "pid": 101,
                                "ancestors": "0,100,101",
                                "deptName": "市场部门",
                                "orderNum": 2,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:56",
                                "updatedAt": "2024-08-28 22:25:56",
                                "deletedAt": null
                            },
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 8,
                            "userName": "lxx",
                            "mobile": "13756566696",
                            "userNickname": "李小小",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "123333@qq.com",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 101,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "127.0.0.1",
                            "lastLoginTime": null,
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-04-12 17:55:45",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 101,
                                "pid": 100,
                                "ancestors": "0,100",
                                "deptName": "深圳总公司",
                                "orderNum": 1,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:55",
                                "updatedAt": "2024-08-28 22:25:55",
                                "deletedAt": null
                            },
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 10,
                            "userName": "xmm",
                            "mobile": "13588999969",
                            "userNickname": "小秘密",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "696@qq.com",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 101,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "[::1]",
                            "lastLoginTime": "2021-07-22 17:08:53",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-04-12 17:55:50",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 101,
                                "pid": 100,
                                "ancestors": "0,100",
                                "deptName": "深圳总公司",
                                "orderNum": 1,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:55",
                                "updatedAt": "2024-08-28 22:25:55",
                                "deletedAt": null
                            },
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 14,
                            "userName": "cd_19",
                            "mobile": "13699888899",
                            "userNickname": "看金利科技",
                            "birthday": 0,
                            "userPassword": "",
                            "userSalt": "",
                            "userStatus": 1,
                            "userEmail": "",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 102,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "",
                            "lastLoginTime": null,
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-04-12 18:13:22",
                            "deletedAt": null,
                            "dept": {
                                "deptId": 102,
                                "pid": 100,
                                "ancestors": "0,100",
                                "deptName": "长沙分公司",
                                "orderNum": 2,
                                "leader": "",
                                "phone": "15888888888",
                                "email": "ry@qq.com",
                                "status": 1,
                                "createdBy": 31,
                                "updatedBy": 31,
                                "createdAt": "2024-08-28 22:25:55",
                                "updatedAt": "2024-08-28 22:25:55",
                                "deletedAt": null
                            },
                            "roleInfo": null,
                            "post": null
                        }
                    ],
                    "currentPage": 0,
                    "total": 26
                }
            }
        }
    },
    {
        url: `${baseApi}/system/user/getUserMenus`,
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "menuList": [
                        {
                            "id": 17,
                            "pid": 0,
                            "name": "outLink",
                            "component": "layout/routerView/parent",
                            "path": "/demo/outLink",
                            "meta": {
                                "icon": "iconfont icon-zhongduancanshu",
                                "title": "外链测试",
                                "isLink": "",
                                "isHide": false,
                                "isKeepAlive": true,
                                "isAffix": false,
                                "isIframe": false
                            },
                            "children": [
                                {
                                    "id": 16,
                                    "pid": 17,
                                    "name": "aliyun",
                                    "component": "layout/routerView/iframes",
                                    "path": "/demo/outLink/aliyun",
                                    "meta": {
                                        "icon": "iconfont icon-diannao1",
                                        "title": "阿里云-iframe",
                                        "isLink": "https://www.aliyun.com/daily-act/ecs/activity_selection?spm=5176.8789780.J_3965641470.5.568845b58KHj51",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": true
                                    },
                                    "children": []
                                },
                                {
                                    "id": 18,
                                    "pid": 17,
                                    "name": "tenyun",
                                    "component": "layout/routerView/link",
                                    "path": "/demo/outLink/tenyun",
                                    "meta": {
                                        "icon": "iconfont icon-shouye_dongtaihui",
                                        "title": "腾讯云-外链",
                                        "isLink": "https://cloud.tencent.com/act/new?cps_key=20b1c3842f74986b2894e2c5fcde7ea2&fromSource=gwzcw.3775555.3775555.3775555&utm_id=gwzcw.3775555.3775555.3775555&utm_medium=cpc",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                }
                            ]
                        },
                        {
                            "id": 1,
                            "pid": 0,
                            "name": "apiV1SystemAuth",
                            "component": "layout/routerView/parent",
                            "path": "/system/auth",
                            "meta": {
                                "icon": "ele-Stamp",
                                "title": "权限管理",
                                "isLink": "",
                                "isHide": false,
                                "isKeepAlive": true,
                                "isAffix": false,
                                "isIframe": false
                            },
                            "children": [
                                {
                                    "id": 2,
                                    "pid": 1,
                                    "name": "apiV1SystemAuthMenuList",
                                    "component": "system/menu/index",
                                    "path": "/system/auth/menuList",
                                    "meta": {
                                        "icon": "ele-Calendar",
                                        "title": "菜单管理",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                },
                                {
                                    "id": 10,
                                    "pid": 1,
                                    "name": "apiV1SystemRoleList",
                                    "component": "system/role/index",
                                    "path": "/system/auth/roleList",
                                    "meta": {
                                        "icon": "iconfont icon-juxingkaobei",
                                        "title": "角色管理",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                },
                                {
                                    "id": 15,
                                    "pid": 1,
                                    "name": "apiV1SystemDeptList",
                                    "component": "system/dept/index",
                                    "path": "/system/auth/deptList",
                                    "meta": {
                                        "icon": "iconfont icon-siweidaotu",
                                        "title": "部门管理",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                },
                                {
                                    "id": 22,
                                    "pid": 1,
                                    "name": "apiV1SystemPostList",
                                    "component": "system/post/index",
                                    "path": "/system/auth/postList",
                                    "meta": {
                                        "icon": "iconfont icon-neiqianshujuchucun",
                                        "title": "岗位管理",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                },
                                {
                                    "id": 26,
                                    "pid": 1,
                                    "name": "apiV1SystemUserList",
                                    "component": "system/user/index",
                                    "path": "/system/auth/user/list",
                                    "meta": {
                                        "icon": "ele-User",
                                        "title": "用户管理",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                }
                            ]
                        },
                        {
                            "id": 27,
                            "pid": 0,
                            "name": "apiV1SystemDict",
                            "component": "layout/routerView/parent",
                            "path": "/system/dict",
                            "meta": {
                                "icon": "iconfont icon-shuxingtu",
                                "title": "系统配置",
                                "isLink": "",
                                "isHide": false,
                                "isKeepAlive": true,
                                "isAffix": false,
                                "isIframe": false
                            },
                            "children": [
                                {
                                    "id": 28,
                                    "pid": 27,
                                    "name": "apiV1SystemDictTypeList",
                                    "component": "system/dict/index",
                                    "path": "/system/dict/type/list",
                                    "meta": {
                                        "icon": "iconfont icon-crew_feature",
                                        "title": "字典管理",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                },
                                {
                                    "id": 29,
                                    "pid": 27,
                                    "name": "apiV1SystemDictDataList",
                                    "component": "system/dict/dataList",
                                    "path": "/system/dict/data/list/:dictType",
                                    "meta": {
                                        "icon": "iconfont icon-putong",
                                        "title": "字典数据管理",
                                        "isLink": "",
                                        "isHide": true,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                },
                                {
                                    "id": 30,
                                    "pid": 27,
                                    "name": "apiV1SystemConfigList",
                                    "component": "system/config/index",
                                    "path": "/system/config/list",
                                    "meta": {
                                        "icon": "ele-Cherry",
                                        "title": "参数管理",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                }
                            ]
                        },
                        {
                            "id": 31,
                            "pid": 0,
                            "name": "apiV1SystemMonitor",
                            "component": "layout/routerView/parent",
                            "path": "/system/monitor",
                            "meta": {
                                "icon": "iconfont icon-xuanzeqi",
                                "title": "系统监控",
                                "isLink": "",
                                "isHide": false,
                                "isKeepAlive": true,
                                "isAffix": false,
                                "isIframe": false
                            },
                            "children": [
                                {
                                    "id": 32,
                                    "pid": 31,
                                    "name": "apiV1SystemMonitorServer",
                                    "component": "system/monitor/server/index",
                                    "path": "/system/monitor/server",
                                    "meta": {
                                        "icon": "iconfont icon-shuju",
                                        "title": "服务监控",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                },
                                {
                                    "id": 34,
                                    "pid": 31,
                                    "name": "apiV1SystemLoginLogList",
                                    "component": "system/monitor/loginLog/index",
                                    "path": "/system/monitor/loginLog",
                                    "meta": {
                                        "icon": "ele-Finished",
                                        "title": "登录日志",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                },
                                {
                                    "id": 38,
                                    "pid": 31,
                                    "name": "apiV1SystemOperLogList",
                                    "component": "system/monitor/operLog/index",
                                    "path": "/system/monitor/operLog",
                                    "meta": {
                                        "icon": "iconfont icon-bolangnengshiyanchang",
                                        "title": "操作日志",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                },
                                {
                                    "id": 39,
                                    "pid": 31,
                                    "name": "apiV1SystemOnlineList",
                                    "component": "system/monitor/userOnline/index",
                                    "path": "/system/monitor/userOnlie",
                                    "meta": {
                                        "icon": "iconfont icon-skin",
                                        "title": "在线用户",
                                        "isLink": "",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": false
                                    },
                                    "children": []
                                }
                            ]
                        },
                        {
                            "id": 35,
                            "pid": 0,
                            "name": "apiV1SystemTools",
                            "component": "layout/routerView/parent",
                            "path": "/system/tools",
                            "meta": {
                                "icon": "iconfont icon-zujian",
                                "title": "系统工具",
                                "isLink": "",
                                "isHide": false,
                                "isKeepAlive": true,
                                "isAffix": false,
                                "isIframe": false
                            },
                            "children": [
                                {
                                    "id": 33,
                                    "pid": 35,
                                    "name": "apiSwagger",
                                    "component": "layout/routerView/iframes",
                                    "path": "/system/swagger",
                                    "meta": {
                                        "icon": "iconfont icon--chaifenlie",
                                        "title": "api文档",
                                        "isLink": "http://localhost:8808/swagger",
                                        "isHide": false,
                                        "isKeepAlive": true,
                                        "isAffix": false,
                                        "isIframe": true
                                    },
                                    "children": []
                                }
                            ]
                        }
                    ],
                    "permissions": [
                        "*/*/*"
                    ]
                }
            }
        }
    },
    {
        url: `${baseApi}/system/user/params`,
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "roleList": [
                        {
                            "id": 1,
                            "status": 1,
                            "orderNum": 0,
                            "name": "超级管理员",
                            "remark": "备注",
                            "dataScope": 3,
                            "createdAt": "2024-08-28 22:26:21",
                            "updatedAt": "2024-11-07 17:20:39"
                        },
                        {
                            "id": 2,
                            "status": 1,
                            "orderNum": 0,
                            "name": "普通管理员",
                            "remark": "备注",
                            "dataScope": 3,
                            "createdAt": "2024-08-28 22:26:21",
                            "updatedAt": "2024-08-28 22:26:21"
                        },
                        {
                            "id": 3,
                            "status": 1,
                            "orderNum": 0,
                            "name": "站点管理员",
                            "remark": "站点管理人员",
                            "dataScope": 3,
                            "createdAt": "2024-08-28 22:26:21",
                            "updatedAt": "2024-08-28 22:26:21"
                        },
                        {
                            "id": 4,
                            "status": 1,
                            "orderNum": 0,
                            "name": "初级管理员",
                            "remark": "初级管理员",
                            "dataScope": 3,
                            "createdAt": "2024-08-28 22:26:21",
                            "updatedAt": "2024-08-28 22:26:21"
                        },
                        {
                            "id": 5,
                            "status": 1,
                            "orderNum": 0,
                            "name": "高级管理员",
                            "remark": "高级管理员",
                            "dataScope": 2,
                            "createdAt": "2024-08-28 22:26:21",
                            "updatedAt": "2024-08-28 22:26:21"
                        },
                        {
                            "id": 8,
                            "status": 1,
                            "orderNum": 0,
                            "name": "区级管理员",
                            "remark": "",
                            "dataScope": 2,
                            "createdAt": "2024-08-28 22:26:21",
                            "updatedAt": "2024-08-28 22:26:21"
                        },
                        {
                            "id": 9,
                            "status": 1,
                            "orderNum": 7,
                            "name": "测试人员",
                            "remark": "测试人员",
                            "dataScope": 3,
                            "createdAt": "2024-11-07 17:22:47",
                            "updatedAt": "2024-11-07 17:22:47"
                        }
                    ],
                    "posts": [
                        {
                            "postId": 1,
                            "postCode": "ceo",
                            "postName": "董事长",
                            "orderNum": 1,
                            "status": 1,
                            "remark": "",
                            "createdBy": 0,
                            "updatedBy": 31,
                            "createdAt": "2024-08-28 22:26:18",
                            "updatedAt": "2024-11-07 17:37:36",
                            "deletedAt": null
                        },
                        {
                            "postId": 2,
                            "postCode": "se",
                            "postName": "项目经理",
                            "orderNum": 2,
                            "status": 1,
                            "remark": "",
                            "createdBy": 0,
                            "updatedBy": 0,
                            "createdAt": "2024-08-28 22:26:18",
                            "updatedAt": "2024-08-28 22:26:18",
                            "deletedAt": null
                        },
                        {
                            "postId": 3,
                            "postCode": "hr",
                            "postName": "人力资源",
                            "orderNum": 3,
                            "status": 1,
                            "remark": "",
                            "createdBy": 0,
                            "updatedBy": 31,
                            "createdAt": "2024-08-28 22:26:18",
                            "updatedAt": "2024-08-28 22:26:18",
                            "deletedAt": null
                        },
                        {
                            "postId": 5,
                            "postCode": "it",
                            "postName": "IT部",
                            "orderNum": 5,
                            "status": 1,
                            "remark": "信息部",
                            "createdBy": 31,
                            "updatedBy": 31,
                            "createdAt": "2024-08-28 22:26:18",
                            "updatedAt": "2024-08-28 22:26:18",
                            "deletedAt": null
                        }
                    ]
                }
            }
        }
    },
    {
        url: `${baseApi}/system/user/resetPwd`,
        params: {
            "userId": 2,
            "password": "123456"
        },
        method: 'put',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": null
            }
        }
    },
    {
        url: `${baseApi}/system/user/setStatus`,
        params: {userId: 1, status: 0},
        method: 'put',
        response: () => {
            return {
                "code": -1,
                "data": null,
                "message": "对不起！演示系统，不能删改数据！"
            }
        }
    },
    {
        url: `${baseApi}/system/user/getByRoleId`,
        params: {roleId: 2},
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "userList": [
                        {
                            "id": 1,
                            "userName": "admin",
                            "mobile": "13578342363",
                            "userNickname": "超级管理员",
                            "birthday": 0,
                            "userPassword": "208956134fc96b30bb3a709f4596443d",
                            "userSalt": "yglDGcXSi3",
                            "userStatus": 1,
                            "userEmail": "yxh669@qq.com",
                            "sex": 1,
                            "avatar": "https://yxh-1301841944.cos.ap-chongqing.myqcloud.com/gfast/2021-07-19/ccwpeuqz1i2s769hua.jpeg",
                            "deptId": 103,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "asdasfdsaf大发放打发士大夫发按时",
                            "describe": "描述信息",
                            "lastLoginIp": "182.240.95.100",
                            "lastLoginTime": "2024-10-15 15:33:41",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2024-10-12 11:21:17",
                            "deletedAt": null,
                            "openId ": "",
                            "dept": null,
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 3,
                            "userName": "zs",
                            "mobile": "16399669855",
                            "userNickname": "张三",
                            "birthday": 0,
                            "userPassword": "208956134fc96b30bb3a709f4596443d",
                            "userSalt": "yglDGcXSi3",
                            "userStatus": 1,
                            "userEmail": "zs@qq.com",
                            "sex": 0,
                            "avatar": "https://yxh-1301841944.cos.ap-chongqing.myqcloud.com/gfast/2021-08-02/cd8nif79egjg9kbkgk.jpeg",
                            "deptId": 101,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "101.70.63.157",
                            "lastLoginTime": "2024-04-29 16:29:36",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-04-28 10:01:47",
                            "deletedAt": null,
                            "openId ": "",
                            "dept": null,
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 5,
                            "userName": "test",
                            "mobile": "13845696696",
                            "userNickname": "测试2",
                            "birthday": 0,
                            "userPassword": "208956134fc96b30bb3a709f4596443d",
                            "userSalt": "yglDGcXSi3",
                            "userStatus": 1,
                            "userEmail": "123@qq.com",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 101,
                            "remark": "",
                            "isAdmin": 0,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "180.165.161.5",
                            "lastLoginTime": "2024-05-07 17:07:51",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2023-12-21 11:55:43",
                            "deletedAt": null,
                            "openId ": "",
                            "dept": null,
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 8,
                            "userName": "lxx",
                            "mobile": "13756566696",
                            "userNickname": "李小小",
                            "birthday": 0,
                            "userPassword": "208956134fc96b30bb3a709f4596443d",
                            "userSalt": "yglDGcXSi3",
                            "userStatus": 1,
                            "userEmail": "123333@qq.com",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 101,
                            "remark": "",
                            "isAdmin": 0,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "::1",
                            "lastLoginTime": "2024-01-10 14:57:12",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2024-01-10 14:43:49",
                            "deletedAt": null,
                            "openId ": "",
                            "dept": null,
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 16,
                            "userName": "ldn",
                            "mobile": "13899658874",
                            "userNickname": "李大牛",
                            "birthday": 0,
                            "userPassword": "208956134fc96b30bb3a709f4596443d",
                            "userSalt": "yglDGcXSi3",
                            "userStatus": 1,
                            "userEmail": "a@ll.con",
                            "sex": 0,
                            "avatar": "",
                            "deptId": 102,
                            "remark": "",
                            "isAdmin": 1,
                            "address": "",
                            "describe": "",
                            "lastLoginIp": "::1",
                            "lastLoginTime": "2024-04-11 15:35:38",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2022-04-12 17:56:27",
                            "deletedAt": null,
                            "openId ": "",
                            "dept": null,
                            "roleInfo": null,
                            "post": null
                        },
                        {
                            "id": 31,
                            "userName": "demo",
                            "mobile": "15334455789",
                            "userNickname": "李四",
                            "birthday": 0,
                            "userPassword": "53a658037ca25d912f5ee8d1d2c1efa1",
                            "userSalt": "MAxiZ9O23n",
                            "userStatus": 1,
                            "userEmail": "123@qq.com",
                            "sex": 2,
                            "avatar": "upload_file/2024-03-25/d02pwgfozw88w3gbmr.jpg",
                            "deptId": 109,
                            "remark": "3",
                            "isAdmin": 1,
                            "address": "云南省曲靖市22223",
                            "describe": "生活变的再糟糕，也不妨碍我变得更好",
                            "lastLoginIp": "218.67.244.4",
                            "lastLoginTime": "2024-11-08 11:12:19",
                            "createdAt": "2021-06-22 17:58:00",
                            "updatedAt": "2024-10-12 09:56:18",
                            "deletedAt": null,
                            "openId ": "",
                            "dept": null,
                            "roleInfo": null,
                            "post": null
                        }
                    ]
                }
            }
        }
    },
    {
        url: `${baseApi}/system/user/selector`,
        params: {pageNum: 1, pageSize: 10, deptId: null, mobile: '', status: null, keyWords: ''},
        method: 'get',
        response: () => {
            return {
                "code": 0,
                "message": "",
                "data": {
                    "currentPage": 0,
                    "total": 27,
                    "userList": [
                        {
                            "id": 1,
                            "avatar": "https://yxh-1301841944.cos.ap-chongqing.myqcloud.com/gfast/2021-07-19/ccwpeuqz1i2s769hua.jpeg",
                            "sex": 1,
                            "userNickname": "超级管理员"
                        },
                        {
                            "id": 2,
                            "avatar": "upload_file/2022-11-04/co3e5ljknns8jhlp8s.jpg",
                            "sex": 1,
                            "userNickname": "奈斯"
                        },
                        {
                            "id": 3,
                            "avatar": "https://yxh-1301841944.cos.ap-chongqing.myqcloud.com/gfast/2021-08-02/cd8nif79egjg9kbkgk.jpeg",
                            "sex": 0,
                            "userNickname": "张三"
                        },
                        {
                            "id": 4,
                            "avatar": "",
                            "sex": 0,
                            "userNickname": "测试c"
                        },
                        {
                            "id": 5,
                            "avatar": "",
                            "sex": 0,
                            "userNickname": "测试2"
                        },
                        {
                            "id": 6,
                            "avatar": "",
                            "sex": 0,
                            "userNickname": "刘大大"
                        },
                        {
                            "id": 7,
                            "avatar": "",
                            "sex": 0,
                            "userNickname": "张明明"
                        },
                        {
                            "id": 8,
                            "avatar": "",
                            "sex": 0,
                            "userNickname": "李小小"
                        },
                        {
                            "id": 10,
                            "avatar": "",
                            "sex": 0,
                            "userNickname": "小秘密"
                        },
                        {
                            "id": 14,
                            "avatar": "",
                            "sex": 0,
                            "userNickname": "看金利科技"
                        }
                    ]
                }
            }
        }
    }
] as MockMethod[]
